Telegram Group & Telegram Channel
Что делает функция random.choice()?

Функция random.choice() модуля random возвращает один случайный элемент из непустой последовательности.

Последовательность может быть неизменяемой (например кортеж) или изменяемой (список). Функция random.choice() поддерживает диапазоны range().

Если последовательность пуста, то поднимается исключение
IndexError.


Библиотека задач по Python



tg-me.com/py_problems_lib/1151
Create:
Last Update:

Что делает функция random.choice()?

Функция random.choice() модуля random возвращает один случайный элемент из непустой последовательности.

Последовательность может быть неизменяемой (например кортеж) или изменяемой (список). Функция random.choice() поддерживает диапазоны range().

Если последовательность пуста, то поднимается исключение
IndexError.


Библиотека задач по Python

BY Библиотека задач по Python | тесты, код, задания


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/py_problems_lib/1151

View MORE
Open in Telegram


Библиотека задач по Python | тесты код задания Telegram | DID YOU KNOW?

Date: |

Telegram announces Search Filters

With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even “Yesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.

How Does Bitcoin Mining Work?

Bitcoin mining is the process of adding new transactions to the Bitcoin blockchain. It’s a tough job. People who choose to mine Bitcoin use a process called proof of work, deploying computers in a race to solve mathematical puzzles that verify transactions.To entice miners to keep racing to solve the puzzles and support the overall system, the Bitcoin code rewards miners with new Bitcoins. “This is how new coins are created” and new transactions are added to the blockchain, says Okoro.

Библиотека задач по Python | тесты код задания from it


Telegram Библиотека задач по Python | тесты, код, задания
FROM USA